(require 'select)
(require 'menu-bar)
+(defvar x-command-line-resources nil)
+
(setq command-switch-alist
(append '(("-bw" . x-handle-numeric-switch)
("-d" . x-handle-display)
("-itype" . x-handle-switch)
("-i" . x-handle-switch)
("-iconic" . x-handle-switch)
+ ("-rn" . x-handle-rn-switch)
("-cr" . x-handle-switch)
("-vb" . x-handle-switch)
("-hb" . x-handle-switch)
x-invocation-args
(cdr x-invocation-args)))))
+;; Handle the -rn option.
+(defun x-handle-rn-switch (switch)
+ (setq x-command-line-resources (car x-invocation-args))
+ (setq x-invocation-args (cdr x-invocation-args)))
+
;; Handle the geometry option
(defun x-handle-geometry (switch)
(setq initial-frame-alist
(setq command-line-args (x-handle-args command-line-args))
(x-open-connection (or x-display-name
- (setq x-display-name (getenv "DISPLAY"))))
+ (setq x-display-name (getenv "DISPLAY")))
+ x-command-line-resources)
(setq frame-creation-function 'x-create-frame-with-faces)